package cloud.shyidong.system.entity;

import cloud.shyidong.core.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 菜单表实体
 * </p>
 *
 * @author syd
 * @since 2023-05-31 13:14:46
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("system_menu")
public class SystemMenuEntity implements BaseEntity {
    
    private static final long serialVersionUID = 1L;
    
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 父菜单ID
     */
    private Long parentId;
    
    /**
     * 编码
     */
    private String code;
    
    /**
     * 名称
     */
    private String name;
    
    /**
     * 路径
     */
    private String path;
    
    /**
     * 图标
     */
    private String icon;
    
    /**
     *
     */
    private Integer status;
    
    /**
     *
     */
    private Integer sortIndex;
    
    /**
     *
     */
    private Long createUser;
    
    /**
     *
     */
    private Date createTime;
    
    /**
     *
     */
    private Long updateUser;
    
    /**
     *
     */
    private Date updateTime;
    
    /**
     *
     */
    @TableLogic
    private Integer deleted;
    
    /**
     *
     */
    private String remark;
    
    @TableField(exist = false)
    private List<SystemMenuEntity> treeList = new ArrayList<>();
    
}
